<?php
/**
 * Model MySQL databazy
 * @author Tomas Srna
 * @package bakalarka
 */

class HostingMysqlModel extends Model
{
	protected function __construct()
	{
		$this->_table = 'mysql';
		
		$this->_fields = array(
			// $name, $datatype, $pk = false,
			// $allownull = false, $default = NULL, $autoincrement = false
			new Field('id', 'int', true, false, NULL, true),
			new Field('updated', 'timestamp', false, true, 
					new Expression('CURRENT_TIMESTAMP')),
			new Field('hosting_id', 'int'),
			new Field('name', 'varchar(100)'),
		);
	}
}
